<template>
  <div>
    <h1>Home</h1>
    <router-link :to="{ name: 'news' }">news</router-link>
    <router-link
      :to="{
        name: 'music',
        params: {
          id: '1',
          time: undefined,
        },
      }"
      >华语music</router-link
    >

    <router-link
      :to="{
        name: 'music',
        params: {
          id: '2',
          time: undefined,
        },
      }"
      >粤语music</router-link
    >

    <router-link
      :to="{
        name: 'music',
        params: {
          id: '3',
        },
      }"
      >英语music</router-link
    >

    <router-link
      :to="{
        // path: '/home/games',
        name: 'games',
        query: {
          tit: '暴力摩托',
          version: '2007',
        },
      }"
      >游戏1</router-link
    >
    <router-link to="/home/games?tit=qq飞车&version=2018"> 游戏2 </router-link>
    <router-view></router-view>
  </div>
</template>

<script>
export default {
  name: "Home",
};
</script>

<style></style>
